<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>首页</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
    <!-- LESS for CSS file -->
    <link href="css/css/index.css" rel="stylesheet" type="text/css">
    <link href="css/css/top_bar.css" rel="stylesheet" type="text/css">
    <!-- <link href="css/city_modal.less" rel="stylesheet" type="text/less"> -->

  </head>
  <body>
    <div class="container-fluid">
      <div class="row" id="top_bar">
        <div class="fixed_div">  <!-- fixed_div -->
          <div class="webTitle">
            <a href="/index.html">
              <img src="image/art_logo.png">
            </a>
          </div>
          <div class="search">
            <img src="image/search.png">
            <input type="text" placeholder="搜索画室、标签">
          </div>
          <div class="switch-pages">
            <a href="/index.html"><span class="top_btn active">首页</span></a>
            <a href="/Q&A.html"><span class="top_btn">问答</span></a>
            <a href="/gallery.html"><span class="top_btn">资料</span></a>
          </div>
          <div class="operation-btns">
            <span class="log_reg" data-toggle="modal" data-target="#logModal">登录</span>
            <span class="log_reg" data-toggle="modal" data-target="#regModal">注册</span>
            <div class="user">
              <div class="avatar_userName">
                <a href="/Info.html">
                  <div class="log_avatar">
                    <img src="image/emptyAvatar.jpg"> 
                  </div>  
                  <span class="userName">name</span>
                </a> 
              </div>

              <div class="hidden_first">
                <div class="triangle"></div>  
                <div class="user-list">
                  <div class="updateInfo" data-toggle="modal" data-target="#updateInfoModal">
                    <a href="/updateUserInfo.html">修改资料</a>
                  </div>
                  <div class="changePass" data-toggle="modal" data-target="#changePassModal">修改密码</div>
                  <div class="quit">退出</div>
                </div>
              </div>
            </div>
          </div> 
        </div>
      </div>

      <!-- 中心信息框 -->
      <div class="row">
        <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1"></div> 
        <div class="center-problem center-sorting col-lg-7 col-md-7 col-sm-7 col-xs-7">
          <div class="sorting-div">
            <div class="city sorting-cols" data-toggle="modal" data-target="#cityModal">
              <img src="image/area.png">
              <span>全国</span>
            </div>
            <div class="sorting-cols"></div>
            <div class="sorting-cols sort-by-time active">
              <span>时间</span>
              <img src="image/sorting.png">
            </div>
            <div class="sorting-cols sort-by-heat">
              <span>热度</span>
              <img src="image/sorting.png">
            </div>
          </div>

          <!-- 后面的文章...... -->
        </div>
        <div class="side_menu col-lg-4 col-md-4 col-sm-4 col-xs-4">
          <div class="side_container"></div>
        </div>
      </div>

      <!-- cityModal -->
      <div class="modal fade" id="cityModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <!-- 插入数据 -->
          </div>
        </div>        
      </div>

      <!-- logModal -->
      <div class="modal fade" id="logModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-dialog">
          <div class="modal-content">
            <div class="closeModal" data-dismiss="modal">
              <img src="image/CLOSE.png">
            </div>
            <div class="input-line">
              <img src="image/email.png" class="account-img">
              <input type="text" id="logAccount" placeholder="输入账号"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <img src="image/lock.png" class="password-img">
              <input type="password" id="logPassword" placeholder="输入密码"/>
            </div>           
            <div class="error"></div>

            <div class="submit-holder">
              <img class="main-submit" src="image/login.png">
            </div>
            <div class="other_login">
              <img src="image/weibo.jpg">
              <span>其它登录：</span>
            </div>
          </div>
        </div>        
      </div>

      <!-- regModal -->
      <div class="modal fade" id="regModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="closeModal" data-dismiss="modal">
              <img src="image/CLOSE.png">
            </div>

            <div class="input-line">
              <div class="labels">
                <span>手机号码</span>
              </div>
              <input type="text" id="regPhone" class="short" placeholder="输入手机号码"/>
              <img class="getCode" src="image/getCode.png">
            </div>
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>验证码</span>
              </div>
              <input type="text" id="regCode" placeholder="输入手机验证码"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>密码</span>
              </div>
              <input type="password" id="regPassword" placeholder="输入密码"/>
            </div>           
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>密码</span>
              </div>
              <input type="password" id="regPassword2" placeholder="再次输入密码"/>
            </div>           
            <div class="error"></div>
            <div class="submit-holder">
              <img class="main-submit" src="image/reg.png">
            </div>
          </div>
        </div>        
      </div>

      <!-- changePassModal -->
      <div class="modal fade" id="changePassModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-dialog">
          <div class="modal-content">

            <div class="input-line">
              <input type="password" id="oldPassword" placeholder="输入旧密码"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <input type="password" id="changePassword1" placeholder="输入新密码"/>
            </div>           
            <div class="error"></div>
            <div class="input-line">
              <input type="password" id="changePassword2" placeholder="确认新密码"/>
            </div>           
            <div class="error"></div>

            <div class="submit-holder">
              <img class="quit" src="image/cancel.png" data-dismiss="modal">
              <img class="main-submit" src="image/confirm.png">
            </div>
          </div>
        </div>        
      </div>

    </div>

    <!-- 中心文章模板 -->
    <script id="articles-template" type="text/x-handlebars-template">
      {{#each articles}}
        <div class="articles" data-articleId={{articleId}} data-studioId={{studioId}}>
          <div class="left-col">
            <div>
              {{#if_empty studioAvatarUrl}}
                <img src='image/emptyAvatar.jpg'>
              {{else}}
                <img src={{studioAvatarUrl}}>
              {{/if_empty}}
            </div>

            <div class="left-triangle"></div>
          </div> 
          <div class="right-col">
            <div class="problem-details">
              <h5><a href="/studio.html?studioId={{studioId}}">{{studioName}}</a></h5>
              <h6>{{publishTime}}</h6>
              <h5>{{title}}</h5>
              <p>{{content}}</p>
              <div class="paintings">
                {{#each images}}
                  <img src={{this}}>
                {{/each}}
              </div>
              <div class="tags-showAll">
                <span class="tags viewNum">点击 {{viewNum}}</span>
                
                <a class="showAll" href="/index_details.html?studioId={{studioId}}&articleId={{articleId}}">显示全部</a>
              </div>
            </div>
          </div> 
        </div>
      {{/each}}
    </script>

    <!-- 右方个人信息(列表)模板 -->
    <script id="sideMenu" type="text/x-handlebars-template">
        <div class="banner">
            <img src="image/long.jpg" alt="banner">
        </div>
        <div class="side_menu_btn_container">
          <ul class="side_menu_btnset" id="side_menu_btnset1">
            <li>
              <a href="/info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mywork.png" alt="mywork.png">
                </div>
                我的作品
                <div class="side_menu_btnTag">{{workNum}}</div>
              </a>
              
            </li>
            <li>
              <a href="/info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/myquestion.png" alt="myquestion.png">
                </div>
                我的提问
                <div class="side_menu_btnTag">{{askNum}}</div>
              </a>
            </li>
            <li>
              <a href="/info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mycomment.png" alt="mycomment.png">
                </div>
                我的评论
                <div class="side_menu_btnTag">{{commentNum}}</div>
              </a>
            </li>
            <li>
              <a href="/info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mysubscribe.png" alt="mysubscribe.png">
                </div>
                我的订阅
                <div class="side_menu_btnTag">{{subscriptionNum}}</div>
              </a>
            </li>
          </ul>
          <ul class="side_menu_btnset" id="side_menu_btnset2">
            <li>
              <a href="/myFollow.html">
                <div class="side_menu_btnIcon">
                  <img src="image/fans.png" alt="fans.png">
                </div>
                关注
                <div class="side_menu_btnTag">{{followNum}}</div>
              </a>
            </li>
            <li>
              <a href="/fans.html">
                <div class="side_menu_btnIcon">
                  <img src="image/fans.png" alt="fans.png">
                </div>
                粉丝
                <div class="side_menu_btnTag">{{fanNum}}</div>
              </a>
            </li>
            <li>
              <a href="/info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mark.png" alt="mark.png">
                </div>
                收藏
                <div class="side_menu_btnTag">{{collectionNum}}</div>
              </a>
            </li>
          </ul>
        </div>
    </script>

    <!-- 城市弹窗模板 -->
    <script id="city-template" type="text/x-handlebars-template">
      <div class="top">
        <h1>选择城市：</h1>
        <span class="main-submit" data-city='' data-dismiss="modal">确认</span>
      </div>
      <div class="cities-area">
        <ul>
          <li class="header hot">
            <h4><b>热门</b></h4>
          </li>
          <li class="cities">
            {{#each hot}}
              <span>{{this}}</span>
            {{/each}}
          </li>
          {{#each provinces}}
            <li class="header">
              <h4><b>{{name}}</b></h4>
            </li>
            <li class="cities">
              {{#each cities}}
                <span>{{this}}</span>
              {{/each}}
            </li>
          {{/each}}
        </ul>
      </div>
    </script>

    <!-- main javascript entrance -->
    <script src="js/tools/require.js" data-main="js/index"></script>


    <div class="footer">
      <div class="footerContent">
        <ul class="footerList">
          <li><a href="#">关于我们</a></li>
          <li><a href="#">联系我们</a></li>
          <li><a href="#">广告业务</a></li>
        </ul>
        <p class="icp">京备123号</p>
        <h2>美术帮</h2>
      </div>
    </div>
  </body>
</html>